/*
 * Created on March 8, 2007
 * 
 * Copyright (c) Patrick Armstrong 2002-2007. All Rights Reserved 
 */
package org.dime.mine.game.actions;

import org.dime.mine.game.Board;

/**
 * Unmark // TODO Add type summary
 * 
 * @author Owner
 */
public class Unmark extends ReversibleAction
{
    /**
     * 
     */
    public Unmark(Board.Location location)
    {
        super(location);
    }

    /*
     * (non-Javadoc)
     * 
     * @see org.dime.mine.game.Action#execute()
     */
    @Override
    public void execute()
    {
        getLocation().setMarked(false);
    }

    /*
     * (non-Javadoc)
     * 
     * @see org.dime.mine.game.actions.Reversible#undo()
     */
    @Override
    public void undo()
    {
        getLocation().setMarked(true);
    }
}
